﻿package tests;
import mclight.selectors.HSlider;
import mclight.selectors.HUISlider;
import mclight.selectors.Knob;
import mclight.selectors.Slider;
import mclight.selectors.UISlider;
import mclight.selectors.VUISlider;
import mclight.indicators.Meter;
import mclight.containers.Panel;
import mclight.buttons.PushButton;
import mclight.text.Text;
import mclight.Window;
import flash.display.Shape;
import flash.display.Sprite;
import flash.events.MouseEvent;

class OtherTest extends GenericTest
{
	public function new() 
	{
		super();
	}
	
	override function init()
	{
		{
			var knob = new Knob(this, 10, 70, 'Knob');
			knob.labelPrecision = 2;
		}
		{
			var meter = new Meter(this, 10, 150);
			meter.label = 'Meter';
			meter.showValues = true;
			meter.value = .5;
		}
		{
			var text = new Text(this, 120, 10);
			text.text = 'slkfdklsjfd\nslkdfjlsdjfjsdf\nskldfjlskdjf\nsdfkljsdlfj\nsdlfkjslkdfj\nsdlkfjlk\nlsdkjflsdfj';
		}
		{
			var window = new Window(this, 250, 170, 'Window');
			new PushButton(window.content, 0, 0, 'Some push button');
		}	
		{
			var panel = new Panel(this, 400, 10);
			panel.setSize(280,200);
			var hUISlider = new HUISlider(panel, 10, 10, 'HUISlider');
			var vUISlider = new VUISlider(panel, 10, 50, 'VUISlider');
			var slider = new HSlider(panel, 10, 30);
			slider.width = 150;
			var canvas = new Shape();
			panel.add(canvas);
		}
	}
}